<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备编码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-equipment_code" class="form-control" name="row[equipment_code]" type="text" value="" placeholder="留空自动生成">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-equipment_name" data-rule="required" class="form-control" name="row[equipment_name]" type="text" value="">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备分类')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-category_id" data-rule="required" class="form-control selectpicker" name="row[category_id]" data-live-search="true">
                <option value="">{:__('请选择分类')}</option>
                {foreach $categoryList as $category}
                <option value="{$category.id}">{$category.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-type" class="form-control selectpicker" name="row[type]">
                <option value="production">生产设备</option>
                <option value="auxiliary">辅助设备</option>
                <option value="testing">检测设备</option>
                <option value="transport">运输设备</option>
            </select>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-status" class="form-control selectpicker" name="row[status]">
                <option value="normal" selected>正常</option>
                <option value="maintenance">维护中</option>
                <option value="fault">故障</option>
                <option value="idle">闲置</option>
            </select>
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('规格型号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-specification" class="form-control" name="row[specification]" type="text" value="">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生产厂家')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manufacturer" class="form-control" name="row[manufacturer]" type="text" value="">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('购买日期')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-purchase_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" name="row[purchase_date]" type="text" value="">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control" name="row[remark]" rows="3"></textarea>
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
